﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media.Imaging;

namespace PairingMatrix.View
{
    /// <summary>
    /// Interaction logic for ImageButton.xaml
    /// </summary>
    public partial class TabsControl : UserControl
    {
        public TabsControl()
        {
            InitializeComponent();
            storyWall.Text = "Story Wall";
            storyWall.Selected += storyWall_Selected; 
            
            regWall.Text = "Regression Wall";
            regWall.Selected += regWall_Selected;
            
            dpsWall.Text = "DPS Wall";
            dpsWall.Selected += dpsWall_Selected;

            storyWall.IsSelected = true;
        }

        void dpsWall_Selected(object sender, EventArgs e)
        {
            storyWall.IsSelected = false;
            regWall.IsSelected = false;
        }

        void regWall_Selected(object sender, EventArgs e)
        {
            storyWall.IsSelected = false;
            dpsWall.IsSelected = false;
        }

        void storyWall_Selected(object sender, EventArgs e)
        {
            dpsWall.IsSelected = false;
            regWall.IsSelected = false;
        }
    }
}
